"""
@Time ： 2021/11/18 16:40
@Auth ： ChenZhangKun
"""
from selenium.webdriver.common.by import By


class Test_Hos_Sell(object):
    def __init__(self, webDriver):
        self.webDriver = webDriver

    def change_role(self):
        elements = self.webDriver.find_elements(By.TAG_NAME, "button")
        # 拿到第二个
        elements[1].click()

        # 切换单位
        a_elements = self.webDriver.find_elements(By.TAG_NAME, "a")
        a_elements[3].click()
